<template>
  <div class="scene-wrapper">
    <SectionTitle :title="title"/>
    <div class="scene-content">
      <h4>{{subTitle}}</h4>
    </div>
  </div>
</template>

<script>
  import SectionTitle from './SectionTitle';

  export default {
    name: "MainTitle",
    props: {
      title: String,
      subTitle: String
    },
    components: {
      SectionTitle
    }
  };
</script>

<style lang="less">
  @import "../assets/css/vars";
.scene-wrapper {
  display: flex;
  align-items: center;
  flex-direction: column;
  .scene-content {
    position: relative;
    width: 400px;
    margin-bottom: 30px;
    margin-top: 20px;
    &::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 0;
      transform: translateY(-50%);
      width: 100%;
      height: 1px;
      background-color: @baseColor;
    }

    h4 {
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      padding: 5px 10px;
      background-color: @bgColor;
    }
  }
}
  @media screen and (max-width: 768px) {
    .scene-wrapper {
      display: flex;
      align-items: center;
      flex-direction: column;
      padding: 0 15px;
      .scene-content {
        position: relative;
        width: 100%;
        max-width: 300px;
        margin-bottom: 30px;
        margin-top: 20px;
        &::before {
          content: '';
          position: absolute;
          top: 50%;
          left: 0;
          transform: translateY(-50%);
          width: 100%;
          height: 1px;
          background-color: @baseColor;
        }

        h4 {
          position: absolute;
          left: 0;
          top: 50%;
          transform: translateY(-50%);
          padding: 5px;
          background-color: @bgColor;
        }
      }
    }
  }
</style>
